<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;



Route::group(function () {
    // 个人信息
    Route::rule('user/getinfo','user/getinfo');
    // 认证
    Route::post('user/auth','user/auth');
    // 发布职位
    Route::post('job/submit','job/submit');
    // 添加队伍
    Route::post('team/submit','team/submit');
    // 我的团队
    Route::get('team/list','team/list');
    // 团队详情
    Route::get('team/get','team/get');
    // 邀请队伍
    Route::post('team/invite','team/invite');
    // 获取编辑详情
    Route::get('team/detail','team/detail');
    // 编辑
    Route::post('team/edit','team/edit');
    // 获取消息列表
    Route::get('message/list','message/list');
})->middleware(app\middleware\Api::class)->middleware(app\middleware\ApiMember::class);



// 公共接口
Route::group(function () {
    // 企业详情
    Route::post('login/session', 'login/session');
    // 获取定位
    Route::post('index/getaddress', 'index/getaddress');
    // 职位详情
    Route::post('login/phonelogin', 'login/phonelogin');
    // 上传
    Route::post('upload/upload','upload/upload');
    // 获取分类
    Route::get('index/jobclass','index/jobclass');
    // 获取经纬度
    Route::post('index/getcode','index/getcode');
    // 获取地区
    Route::post('index/getcity','index/getcity');
    // 工程列表
    Route::get('job/list','job/list');
    // 工程详情
    Route::get('job/get','job/get');
});

